package com.springbootnetty.handler;

import com.springbootnetty.dto.InBody;
import com.springbootnetty.entity.TbAuth;
import com.springbootnetty.jt808.BaseHead;
import org.springframework.stereotype.Component;

/**
 * 01 02 鉴权
 *258
 * */
@Component
@BenType(0x0102)
public class AuthHandler extends BaseHandler {
    @Override
    public byte[] handle(InBody inBody, BaseHead baseHead) {
        System.out.println("授权。。。。。。。。。。。。。。。。。");
        byte[] resp = new TbAuth().resp(inBody.getNewByte());
        return resp;
    }
}
